{{extend '../_layouts/home.html'}}

{{block 'title'}}{{'多人博客 - 首页'}}{{/block}}

{{block 'body'}}
<section class="container">
  <ul class="media-list" id="historyC">
   
    
   
  </ul>
  
</section>
<script>
    var data = JSON.parse(window.sessionStorage.getItem("history"))||[];
    var chtml = '';
    data.forEach(item => {
        chtml += ` <li class="media">
      
      <div class="media-body">
        <h4 class="media-heading"><a href="${item.type}?id='${item._id}'">${item.title}</a></h4>
       
      </div>
    </li>`
        
    });
   document.querySelector("#historyC").innerHTML = chtml
</script>
{{/block}}
